package com.njlime.sys.controller;

import com.alibaba.fastjson.JSONObject;
import com.njlime.core.base.controller.BaseController;
import com.njlime.core.helper.GlobalValue;
import com.njlime.sys.security.util.UserUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping(value = "sys")
public class FinderController extends BaseController{

    /**
     * 素材选择
     * @return
     */
    @RequestMapping(value = "/material" )
    public ModelAndView material(HttpServletRequest request) {
        ModelAndView modelAndView = new ModelAndView("/sys/material");
        return modelAndView;
    }

    @RequestMapping(value = "/ueditorMaterial" )
    public ModelAndView ueditorMaterial(HttpServletRequest request) {
        ModelAndView modelAndView = new ModelAndView("/sys/ueditorMaterial");
        return modelAndView;
    }

    @RequestMapping(value = "imageUpload")
    public ModelAndView imageUpload(HttpServletRequest request) {
        ModelAndView modelAndView = new ModelAndView("/sys/uploadImage");
        return modelAndView;
    }


}
